RewriteEngine On
RewriteBase /

RewriteRule ^user/([_!.@a-zA-Z0-9\ \'\-]+)/?([_!@a-zA-Z0-9\ \'\-]+)?(.html)?$ userhome.php?page=$1&show=$2 [QSA,L]
RewriteRule ^news/(.*[^/])/?$ shownews.php?id=$1 [L]

#---------------------------------------------------------------
# comment the following lines if you don't use SEO-friendly URLs 
#---------------------------------------------------------------

RewriteRule ^play/(.*[^/])/?$ game.php?game=$1 [L]
RewriteRule ^category/(.*[^/])/?$ cat.php?cat=$1 [L]

#---------------------------------------------------------------
